package com.StarStudio.Service.Impl;

import com.StarStudio.Service.SoilService;
import com.StarStudio.Domain.Soil;
import com.StarStudio.Mapper.SoilMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SoilServiceImpl implements SoilService {

    @Autowired
    private SoilMapper soilMapper;

    @Override
    public List<Soil> getAllByZoneId(int zoneId) {
        return soilMapper.getAllByZoneId(zoneId);
    }

    @Override
    public Soil getNewOneByZoneId(int zoneId) {
        return soilMapper.getNewOneByZoneId(zoneId);
    }

    @Override
    public void add(Soil soil, int zoneId) {
        //soilMapper.add(soil);
    }

    @Override
    public void update(Soil soil) {
        //soilMapper.update(soil);
    }

    @Override
    public void delete(int soilId) {
        //soilMapper.delete(soilId);
    }
}
